package com.设计模式.策略模式;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/2  10:29
 * 描述:
 */
@Component
public class Celue4 implements CeLueInterface,InitializingBean {


    @Override
    public void celue() {
        System.out.println("=====第四种条件=====");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        CeLueFactory.registerCelule(this,4);
    }
}
